Java: one-liner to add things to a declared File[]?
Posted
by Heoa
on Stack Overflow
See other posts from Stack Overflow
or by Heoa
Published on 2010-04-03T11:56:08Z
Indexed on
2010/04/03
12:03 UTC
Read the original article
Hit count: 317
The directoryReader gets you dirs in current dir in File[]-format.
Code
DirectoryReader data = new DirectoryReader();
File[] dirs = data.getDirsInDir(".");
File[] dirsMore = data.getDirsInDir("..");
// How can I append dirsMore to dirs-file[]?
© Stack Overflow or respective owner